<?php
//Connection statement
require_once('../../../Connections/cn.php');


// begin Recordset
$colname__rsCupos = '-1';
if (isset($_GET['id_curso'])) {
  $colname__rsCupos = $_GET['id_curso'];
}
$colname2__rsCupos = '-1';
if (isset($_GET['a'])) {
  $colname2__rsCupos = $_GET['a'];
}
$query_rsCupos = sprintf("SELECT 
							cupos, anio_matricula, id_curso, des_curso, id_nivel, des_nivel 
							FROM vs_cupos 
							WHERE id_curso = %s
							AND anio_matricula = %s", $colname__rsCupos, $colname2__rsCupos);
$rsCupos = $cn->SelectLimit($query_rsCupos) or die($cn->ErrorMsg());
$totalRows_rsCupos = $rsCupos->RecordCount();
// end Recordset
?>

      <?php echo $rsCupos->Fields('cupos'); ?>
      <?php echo $rsCupos->Fields('anio_matricula'); ?>
      <?php echo $rsCupos->Fields('des_curso'); ?>
     <?php echo $rsCupos->Fields('des_nivel'); ?>

<?php
$rsCupos->Close();
?>
